package cc.mrbird.grid.domain;

import cc.mrbird.common.annotation.ExportConfig;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

@Table(name = "grid_gridinfo")
public class GridInfo implements Serializable{
    //网格信息包括网格ID、网格名称、
    // 网格范围（东南西北的界定街道和对应经纬度）、网格范围描述
    private static final long serialVersionUID = 7780820231535870016L;

    @Id
    @GeneratedValue(generator = "JDBC")
    @Column(name = "grid_id")
    @ExportConfig(value = "网格ID")
    private Long grid_id;

    @Column(name = "grid_name")
    @ExportConfig(value = "网格名称")
    private String grid_name;

    @Column(name = "grid_scope")
    @ExportConfig(value = "网格范围")
    private String grid_scope;

    @Column(name = "grid_scopeStr")
    @ExportConfig(value = "网格范围描述")
    private String grid_scopeStr;
    @Column(name = "parent_id")
    @ExportConfig(value = "网格父id")
    private Long parent_id;

    public Long getParent_id() {
        return parent_id;
    }

    public void setParent_id(Long parent_id) {
        this.parent_id = parent_id;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Long getGrid_id() {
        return grid_id;
    }

    public void setGrid_id(Long grid_id) {
        this.grid_id = grid_id;
    }

    public String getGrid_name() {
        return grid_name;
    }

    public void setGrid_name(String grid_name) {
        this.grid_name = grid_name;
    }

    public String getGrid_scope() {
        return grid_scope;
    }

    public void setGrid_scope(String grid_scope) {
        this.grid_scope = grid_scope;
    }

    public String getGrid_scopeStr() {
        return grid_scopeStr;
    }

    public void setGrid_scopeStr(String grid_scopeStr) {
        this.grid_scopeStr = grid_scopeStr;
    }

    @Override
    public String toString() {
        return "GridInfo{" +
                "grid_id=" + grid_id +
                ", grid_name='" + grid_name + '\'' +
                ", grid_scope='" + grid_scope + '\'' +
                ", grid_scopeStr='" + grid_scopeStr + '\'' +
                ", parent_id=" + parent_id +
                '}';
    }
}
